import request from '@/utils/request';

export function login({ username, password }) {
	return request({
		url: '/api/login',
		method: 'post',
		data: {
			username,
			password
		}
	});
}
export function reguser({ username, password, email }) {
	return request({
		url: '/api/reguser',
		method: 'post',
		data: {
			username,
			password,
			email
		}
	});
}
